/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package semanticagrovoctagger;

import kea.filters.*;
import kea.main.*;
import kea.stemmers.*;
import kea.stopwords.*;
import kea.util.*;
import kea.vocab.*;

/**
 *
 * @author rishik
 */
public class ConfigRootPath {

    protected static String semanticTaggerRootPath;

    /**
     * Get the value of string
     *
     * @return the value of string
     */
    public static String getRootPath() {
        return semanticTaggerRootPath;
    }

    /**
     * Set the value of string
     *
     * @param string new value of string
     */
    public static void setRootPath(String absPath) {
        System.out.println("setting the root path....");
        if(!absPath.endsWith("/")) absPath = absPath + "/";
        ConfigRootPath.semanticTaggerRootPath = absPath;
        
        StopwordsEnglish.setRootPath(absPath);
        StopwordsFrench.setRootPath(absPath);
        StopwordsGerman.setRootPath(absPath);
        StopwordsPortugese.setRootPath(absPath);
        StopwordsSpanish.setRootPath(absPath);
        Vocabulary.setRootPath(absPath);
    }



}
